package com;

import org.junit.Test;

import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLClassLoader;

public class MyTest {

    @Test
    public void test() throws MalformedURLException, ClassNotFoundException, IllegalAccessException, InstantiationException {
        URLClassLoader loader = new URLClassLoader(new URL[]{new URL("file:///D:\\Users\\W612677.ONEPLUS\\Desktop")});
        Class<?> aClass = loader.loadClass("com.HelloDemo");
        Object o = aClass.newInstance();
    }
}
